package com.quan.common.utils.oss.common.qiniu;

import java.util.List;

public class FilePage {

	// 空间名称
	private String bucketName;

	// 上一次列举返回的位置标记，作为本次列举的起点信息。如果返回null则说明没有下一页
	private String marker;

	// 本次列举的条目数，范围为1-1000
	private int limit = 2;

	// 指定前缀，只有资源名匹配该前缀的资源会被列出
	private String prefix;

	// 指定目录分隔符，列出所有公共前缀（模拟列出目录效果）
	private String delimiter;
	
	//是否获取成功
	private boolean status ;
	
	// 错误信息
	private String errorMsg ;

	// 文件名称
	private String key;

	// 文件Hash
	private String hash;

	// 文件大小，单位：字节
	private long fsize;

	// 文件类型
	private String mimeType;

	// 文件上传时间，单位为：100纳秒
	private long putTime;

	// 文件下载URL
	private String downloadUrl;

	private List<FilePage> fileList;

	public FilePage() {
	}

	public FilePage(String bucketName, String marker, int limit, String prefix, String delimiter) {
		super();
		this.bucketName = bucketName;
		this.marker = marker;
		this.limit = limit;
		this.prefix = prefix;
		this.delimiter = delimiter;
	}

	public String getBucketName() {
		return bucketName;
	}

	public void setBucketName(String bucketName) {
		this.bucketName = bucketName;
	}

	public String getMarker() {
		return marker;
	}

	public void setMarker(String marker) {
		this.marker = marker;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

	public String getDelimiter() {
		return delimiter;
	}

	public void setDelimiter(String delimiter) {
		this.delimiter = delimiter;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getHash() {
		return hash;
	}

	public void setHash(String hash) {
		this.hash = hash;
	}

	public long getFsize() {
		return fsize;
	}

	public void setFsize(long fsize) {
		this.fsize = fsize;
	}

	public String getMimeType() {
		return mimeType;
	}

	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}

	public long getPutTime() {
		return putTime;
	}

	public void setPutTime(long putTime) {
		this.putTime = putTime;
	}

	public String getDownloadUrl() {
		return downloadUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}

	public List<FilePage> getFileList() {
		return fileList;
	}

	public void setFileList(List<FilePage> fileList) {
		this.fileList = fileList;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "FilePage [bucketName=" + bucketName + ", marker=" + marker + ", limit=" + limit + ", prefix=" + prefix + ", delimiter=" + delimiter + ", status=" + status + ", errorMsg=" + errorMsg + ", key=" + key + ", hash=" + hash + ", fsize=" + fsize + ", mimeType=" + mimeType + ", putTime=" + putTime + ", downloadUrl=" + downloadUrl + ", fileList=" + fileList + "]";
	}

	
}
